﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Class_KetNoi;

namespace GiaoDien
{
    public partial class uc_TraCuuPhongBan : DevExpress.XtraEditors.XtraUserControl
    {
        public uc_TraCuuPhongBan()
        {
            InitializeComponent();
        }

        private void groupControl3_Paint(object sender, PaintEventArgs e)
        {

        }
        KetNoi_PhongBan kn = new KetNoi_PhongBan();
        private void btnTimKiem_Click(object sender, EventArgs e)
        {
            string sql = "select * from tbl_PhongBan where MaPB='"+txtNoiDung.Text +"'";
            gridControl1.DataSource = kn.taobang(sql);
        }

        private void uc_TraCuuPhongBan_Load(object sender, EventArgs e)
        {
            kn.connect();
        }
    }
}
